<?php
    require_once('Geocoder.php');

    $address  = '1600 Pennsylvania Ave Washington DC';
    $geocoder = new Geocoder('your key');

    $xml  = $geocoder->performRequest($address, 'xml');
    $json = $geocoder->performRequest($address, 'json');
    $csv  = $geocoder->performRequest($address, 'csv');
?>
<html>
    <head>
        <title>Testing the performRequest() method</title>
    </head>
    <body>
        <div>
            <h1>Testing the performRequest() method</h1>

            <h2>Address: <?php echo $address ?></h2>

            <h3>XML</h3>

            <?php echo htmlSpecialChars($xml) ?>

            <h3>JSON</h3>

            <?php echo htmlSpecialChars($json) ?>

            <h3>CSV</h3>

            <?php echo htmlSpecialChars($csv) ?>
        </div>
    </body>
</html>